package org.atovio.coolexam.service;

import org.atovio.coolexam.entity.ExamPaperQuestionCustomerAnswer;

import java.util.List;
import java.util.Map;

public interface ExamPaperQuestionCustomerAnswerService {

    /**
     * 根据条件查询记录条数
     *
     * @param criteria 条件
     * @return 记录条数
     */
    int getCount(Map<String, Object> criteria);

    ExamPaperQuestionCustomerAnswer add(ExamPaperQuestionCustomerAnswer examPaperQuestionCustomerAnswer);

    ExamPaperQuestionCustomerAnswer modifyAnswerById(Integer id, String answer);

    ExamPaperQuestionCustomerAnswer modifyCustomerScoreById(Integer id, Integer customerScore);

    List<ExamPaperQuestionCustomerAnswer> getSelective(Map<String, Object> criteria);
}
